package com.company.gas.mapper;

import com.company.gas.pojo.GasBase;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.math.BigDecimal;
import java.util.List;

@Mapper
@Repository
public interface GasBaseMapper {
    List<GasBase> queryGasBaseList();

    GasBase queryGasBaseByID(@Param(value = "baseId") String baseId);

    String addGasBase(@Param(value = "baseId") String baseId , @Param(value = "gasStore") BigDecimal gasStore,
                      @Param(value = "baseAdr") String baseAdr , @Param(value = "flag") Boolean flag,
                      @Param(value = "createBy") String createBy , @Param(value = "modifyBy") String modifyBy);

    String updateGasBase(@Param(value = "baseId") String baseId , @Param(value = "gasStore") BigDecimal gasStore,
                         @Param(value = "baseAdr") String baseAdr , @Param(value = "modifyBy") String modifyBy);

    int deleteGasBaseByID(@Param(value = "baseId") String baseId);
}
